function verify(){
	var countAcctType = 0;
	var countSex = 0;
	
	//Check if sex== NULL
	for (i=0;i<document.forms['reg'].sex.length;i++) {
		if (!(document.forms['reg'].sex[i].checked)) {
			countSex++;
			
		}
	}	
	if(document.reg.sex.length == countSex){		
		alert("Choose sex.");
		document.reg.sex[0].focus();
		return false;
				
	}
	
	//Check if account type == NULL
	for (i=0;i<document.forms['reg'].accountType.length;i++) {
		if (!(document.forms['reg'].accountType[i].checked)) {
			countAcctType++;
		}
	}	
	if(document.reg.accountType.length == countAcctType){		
		alert("Choose account type.");
		document.reg.accountType[0].focus();
		return false;
				
	}
	
	//Check all fields for student
	
}

function studentSelected(){
        if (document.getElementById) { 
                document.getElementById('divStudent').style.display = 'block'; 
                document.getElementById('divAdminStaff').style.display = 'none'; 
                document.getElementById('divInstructor').style.display = 'none'; 
        }
}
function adminStaffSelected(){
        if (document.getElementById) { 
                document.getElementById('divStudent').style.display = 'none'; 
                document.getElementById('divAdminStaff').style.display = 'block'; 
                document.getElementById('divInstructor').style.display = 'none'; 
        }
}
function instructorSelected(){
        if (document.getElementById) { 
                document.getElementById('divStudent').style.display = 'none'; 
                document.getElementById('divAdminStaff').style.display = 'none'; 
                document.getElementById('divInstructor').style.display = 'block'; 
        }
}
